#ifndef XQAT_WEATHER_H
#define XQAT_WEATHER_H
#include <QDebug>
#include "QtCore"
#include <QTableWidget>
#include <QLabel>
struct weather_info_t {
    QString date;
    QString high;
    QString fengli;
    QString low;
    QString fengxiang;
    QString type;
};

struct weather_t {
    QString city;
    QString ganmao;
    QString wendu;
    QString status;
    QString desc;
    struct weather_info_t yesterday;
    struct weather_info_t today;
    struct weather_info_t day1;
    struct weather_info_t day2;
    struct weather_info_t day3;
    struct weather_info_t day4;
};
class xqat_weather
{
public:
    xqat_weather();

    void parse_json_data(struct weather_t *weather, QString json);

    void set_Controls(struct weather_t *weather, QTableWidget *tableWidget, QLabel *label);

};

#endif // XQAT_WEATHER_H
